package com.zusmart.plugin.transaction;

import java.sql.SQLException;

public interface TranscationManager {

	public TransactionStatus getTranscation(Propagation propagation) throws SQLException;

	public TransactionStatus getTranscation(Propagation propagation, Isolation isolation) throws SQLException;

	public void commit(TransactionStatus transactionStatus) throws SQLException;

	public void rollback(TransactionStatus transactionStatus) throws SQLException;

	public boolean hasTransaction(TransactionStatus transactionStatus);

	public boolean isTopTransaction(TransactionStatus transactionStatus);

}